<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false"%>
<html>
<head>
    <title>按重计算结果比对</title>
    <style>
        .table-responsive{
            overflow: auto; width: 100%;
        }
        .table {
            white-space: nowrap;
            overflow:scroll;
            width: inherit;
        }
        .table td {
            white-space: nowrap;
            text-overflow: ellipsis;
        }
    </style>
</head>
<body>
    <div ng-app="myApp" ng-controller="WeightResultCtrl">
        <div class="row">
            <ui-container url="report/calculate/list/weight" key="majorRuleLog-list-00">
                <ui-search-form>
                    <search-select-remote url="report/calculate/suffixs" class="col-md-3"  name="suffix" value-name="suffix" text-name="suffix" isslectfirst=true >
                    </search-select-remote>
                    <search-select-remote placeholder="请选择供应商" url="system/supplier/listall" class="col-md-3" name="supplierName" value-name="name" text-name="name" isslectfirst=true>
                    </search-select-remote>
                    <search-select-remote placeholder="请选择承运商" url="system/carrier/carriers" class="col-md-3" name="carrierName" value-name="carrierName" text-name="carrierName">
                    </search-select-remote>
                    <search-select-remote placeholder="请选择目的省" url="regioncode/province" class="col-md-3" name="toProvinceName" value-name="name" text-name="name">
                    </search-select-remote>
                    <search-input class="col-md-3" name="orgName" placeholder="请输入站点名称"></search-input>
                    <search-input class="col-md-3" name="workNo" placeholder="请输入员工工号"></search-input>
                    <search-input class="col-md-3" name="realName" placeholder="请输入员工姓名"></search-input>
                </ui-search-form>
                <ui-table-tool>
                </ui-table-tool>
                <ui-table dischecked=true >
                </ui-table>
                <table-page />
            </ui-container>
        </div>
    </div>
<script>
    angular.module('myApp',['ui.table']);
    angular.module('myApp').controller('WeightResultCtrl', function($scope){
        $scope._columns=[
            {name:'waybillNum',head:'运单号'},
            {name:'businessCode',head:'订单号'},
            {name:'supplierName',head:'供应商'},
            {name:'carrierName',head:'承运商'},
            {name:'toProvinceName',head:'目的省'},
            {name:'toCityName',head:'收件人城市'},
            {name:'toCountyName',head:'收件人区县'},
            {name:'regionLevel',head:'区域级别',render(data,value){
                switch (value + ""){
                    case "0" : return "一类区域";
                    case "1" : return "二类区域";
                    case "2" : return "三类区域";
                    default : return "未知";
                };
            }},
            {name:'fromProvinceName',head:'发货省'},
            {name:'fromCityName',head:'发货城市'},
            {name:'isCombined',head:'是否组包',render(data,value){
                switch (value + ""){
                    case "0" : return "非组包";
                    case "1" : return "组包";
                    default : return "未知";
                }
            }},
            {name:'major',head:'首拖件',render(data,value){
                switch (value + ""){
                    case "0" : return "首件";
                    case "1" : return "拖件";
                    case "2": return "零价件";
                    default : return "未打标";
                }
            }},
            {name:'weight',head:'重量'},
            {name:'combinedWeight',head:'组包重量'},
            {name:'acceptTime',head:'揽收时间'},
            {name:'signTime',head:'签收时间'},
            {name:'orgName',head:'配送站点'},
            {name:'postmanNo',head:'配送员id'},
            {name:'workNo',head:'配送员工号'},
            {name:'realName',head:'配送姓名'},
            {name:'fee',head:'薪资'},
            {name:'processDesc',head:'计算过程'}
        ];
    });
</script>
</body>
</html>
